package com.canaan.business.service.bill;

import com.canaan.business.domain.bill.ReceiveProductBill;
import com.canaan.business.domain.vo.ReceiveBillForPrintVO;
import com.canaan.business.domain.vo.ReceiveProductBillExportCheckVo;
import com.canaan.business.domain.vo.ReceiveProductBillExportVo;
import com.canaan.business.domain.vo.ReceiveProductBillVo;

import java.util.List;

/**
 * 收货单Service接口
 *
 * @author ruoyi
 * @date 2023-02-01
 */
public interface IReceiveProductBillService {
    /**
     * 查询收货单
     *
     * @param id 收货单主键
     * @return 收货单
     */
    ReceiveProductBill selectReceiveProductBillById(Long id);

    /**
     * 查询收货单列表
     *
     * @param receiveProductBill 收货单
     * @return 收货单集合
     */
    List<ReceiveProductBill> selectReceiveProductBillList(ReceiveProductBill receiveProductBill);

    /**
     * 新增收货单
     *
     * @param receiveProductBill 收货单
     * @return 结果
     */
    int insertReceiveProductBill(ReceiveProductBill receiveProductBill);

    /**
     * 批量新增收货单
     *
     * @param receiveProductBillList 收货单列表
     * @return 结果
     */
    int batchInsertReceiveProductBill(List<ReceiveProductBill> receiveProductBillList);

    /**
     * 修改收货单
     *
     * @param receiveProductBill 收货单
     * @return 结果
     */
    int updateReceiveProductBill(ReceiveProductBill receiveProductBill);

    /**
     * 批量修改收货单
     *
     * @param receiveProductBillList 收货单列表
     * @return 结果
     */
    int batchUpdateReceiveProductBill(List<ReceiveProductBill> receiveProductBillList);

    /**
     * 批量删除收货单
     *
     * @param ids 需要删除的收货单主键集合
     * @return 结果
     */
    int deleteReceiveProductBillByIds(Long[] ids);

    /**
     * 删除收货单信息
     *
     * @param id 收货单主键
     * @return 结果
     */
    int deleteReceiveProductBillById(Long id);

    /**
     * 查询收货单
     *
     * @param no 编号
     * @return 收货单
     */
    ReceiveProductBill selectReceiveProductBillByNo(String no);

    /**
     * 批量删除收货单
     *
     * @param nos 需要删除的编号集合
     * @return 结果
     */
    int deleteReceiveProductBillByNos(String[] nos);

    /**
     * 删除收货单信息
     *
     * @param no 编号
     * @return 结果
     */
    int deleteReceiveProductBillByNo(String no);

    List<ReceiveProductBillExportVo> exportList(ReceiveProductBill receiveProductBill);

    List<String> importExcel(List<ReceiveProductBillExportVo> list);

    List<ReceiveProductBillExportCheckVo> exportCheckList(ReceiveProductBill receiveProductBill);
    /**
     * 完成收货
     * @param params    收货编号和清单列表
     * @return  结果
     */
    int complete (ReceiveProductBillVo params);

    /**
     * 确定
     * @param bill    确认参数
     * @return  结果
     */
    int confirm (ReceiveProductBill bill);

    /**
     * 收货单打印
     * @param no
     */
    ReceiveBillForPrintVO selectReceiveBillForPrint(String no);

}
